package com.seven.ssa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seven.ssa.model.entity.QuestionBank;
import com.seven.ssa.model.vo.QuestionBankVO;
import com.seven.ssa.service.QuestionBankService;
import com.seven.ssa.mapper.QuestionBankMapper;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/**
* @author Dell
* @description 针对表【question_bank(题库)】的数据库操作Service实现
* @createDate 2025-06-14 10:41:43
*/
@Service
public class QuestionBankServiceImpl extends ServiceImpl<QuestionBankMapper, QuestionBank>
    implements QuestionBankService{
    /**
     * 题库对象转封装类
     * @param questionBank
     * @param request
     * @return
     */
    @Override
    public QuestionBankVO getQuestionBankVO(QuestionBank questionBank, HttpServletRequest request) {
        // 对象转封装类
        QuestionBankVO questionBankVO = QuestionBankVO.objToVo(questionBank);
        return questionBankVO;
    }

}




